using System;
using System.Collections.Generic;
using System.Text;

namespace Data.DataTranslator
{
    public class kDimPoint
    {
        private int[] point;
        private int dim;
        public kDimPoint(int k)
        {
            Dim = k;
            this.point = new int[k];
        }

        public kDimPoint(int[] point)
        {
            Dim = point.Length;
            this.point = point;
        }

        public int Dim
        {
            get
            {
                return this.dim;
            }
            set 
            {
                if (value < 1)
                    throw new Logic.Exceptions.NumberOutOfRangeException();
                else
                    this.dim = value;
            }
        }
        public int[] getPoint()
        {
            return this.point;
        }
        public int getValueInPointAtPosition(int pos)
        {
            return this.point[pos];
        }
    }
}
